package org.springblade.handle;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springblade.feign.IDeviceManagerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ProductJobHandle {

	private static Logger logger = LoggerFactory.getLogger(ProductJobHandle.class);

	@Autowired
	private IDeviceManagerClient deviceManagerClient;


	/**
	 * 定时检查产品连通性
	 */
	@XxlJob("testIpAndPort")
	public void testIpAndPort() throws Exception {
		deviceManagerClient.testIpAndPort();
	}

}
